package com.canaan.business.controller.pc.home;

import com.canaan.business.service.home.HomeService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import com.canaan.business.domain.home.ToDoListNumEntity;

import javax.annotation.Resource;

/**
 * APP首页接口
 *
 * @author 
 * @version 1.0
 * @since 2023年07月05日10:04:55
 */
@Api(tags = "APP首页接口")
@RestController
@RequestMapping("/home")
public class HomeController {

    @Resource
    private HomeService service;

    /**
     * 查询待办事项数量
     *
     * @param loginCode 用户名
     * @return ToDoListNumEntity
     */
    @GetMapping("/toDoListNum")
    public ToDoListNumEntity selectToDoListNum(String loginCode) {
        return service.selectToDoListNum(loginCode);
    }

}
